package javabase.schoolwork.day6_10;

/**
 * @author fance
 * @date 2018/6/10 13:31
 */
public class Account {
    private String num;
    private double money;

    public Account() {
    }

    public Account(String num, double money) {
        this.num = num;
        this.money = money;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public boolean equals(Object obj) {
        return hashCode() == obj.hashCode();
    }

    @Override
    public int hashCode() {
        return num.hashCode();
    }
}
